<?php
class DigFile_View_Helper_DigFileRender extends Zend_View_Helper_Abstract
{
    public function digFileRender($path, $options = array()) {
        $resource = DigFile_Model_Resource::factory($path);
        if($resource) {
            $options['resource'] = $resource;
            return $this->view->action('render', $resource->controller(), 'digFile', $options);
        }
    }
}
?>
